Repository navigation
Conversation
omacom#19913 batched the per-skill ln into one `ln -sfn -t "$dir" --` call, and that call fails with "Not a directory" when a harness skills directory is a symlink to a folder, aborting `omarchy dev link` halfway through. A trailing slash on the target makes ln resolve the symlink, while -n still keeps it from following the per-skill links inside. Fixes omacom#20106
[Medium impact] This PR appears safe to merge. SummaryMakes
No actionable issues found. Tests were not run during this review. Reviews (1) · Last reviewed commit: "Follow a skills directory that is itself..." · Reviewed by Greptile |
|
Thanks, @AnPod. This duplicates the earlier open PR #20111: both target GPT-6 High in Codex compared both complete diffs, the linked issue and the helper's callers. Opus 5.5 High checked the two diffs and agreed they make the same change; independence is not guaranteed. No code was run for this duplicate comparison. Closing this in favor of #20111. It can be reopened if this includes something the earlier PR misses. |
Fixes #20106
Problem:
omarchy dev linkaborts withln: target '~/.claude/skills': Not a directorywhen a harness skills directory is a symlink to a folder, as dotfile managers commonly make it. #19913 replaced the per-skillln -sfn "$skill" "$link"with one batchedln -sfn -t "$dir" --call, and that call treats the symlink as the thing to replace instead of the folder behind it. Underset -euo pipefailthe remaining harness directories are never linked, andomarchy dev unlinkand first-login provisioning abort too, since all three go throughomarchy-agent-skills-link.Fix: put a trailing slash on the target,
ln -sfn -t "$dir/" -- "${pending[@]}". The slash makeslnresolve a skills directory that is itself a symlink, while-nstill keeps it from following the per-skill links inside it.Test:
test/shell.d/provision-user-test.shnow sets up.codex/skillsas a symlink to a real folder outside the harness dirs and asserts the Omarchy skill link lands behind the symlink. The test goes red on the unpatched script with the issue'sNot a directoryerror and passes with the fix; no caller needs a change.